<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>头部导航栏</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
        }

        ul {
            list-style-type: none;
            margin: 0;
            padding: 0;
        }

        /* 导航栏样式 */
        .navbar {
            background: linear-gradient(to right, #4CAF50, #6a9e8d);
            overflow: hidden;
            display: flex;
            justify-content: space-between;
        }

        .navbar .navbar-box {
            display: flex;
            justify-content: space-between;
            margin: 0 5px 0 5px;
            align-items: center;
            color: white;
            text-align: center;
            text-decoration: none;
        }

        .navbar .navbar-box a {
            display: block;
            padding: 14px 20px;
            cursor: pointer;
            color: white;
            text-decoration: none;
            border-radius: 5px;
        }

        .navbar-box a img {
            margin-right: 5px;
            vertical-align: middle;
            height: 25px;
            width: 25px;
            margin-left: 5px;
        }

        .navbar .title {          /* 导航栏中间标题样式 */
            font-size: 20px;
        }

        .navbar .navbar-box a:hover {
            background-color: #575757;
        }

        .navbar .navbar-box a img {
            margin-right: 5px;
            vertical-align: middle;
            height: 25px;
            width: 25px;
            margin-left: 5px;
        }

    </style>
</head>
<body>
<!-- 导航栏 -->
<div class="navbar">
    <div class="navbar-box">
        <a>
            <img src="${pageContext.request.contextPath}/static/LOGO.svg" alt="主页">欢迎${account.username}
        </a>
    </div>

    <div class="navbar-box title">
        <p>LILI房屋租赁信息系统</p>
    </div>

    <div class="navbar-box">
        <a href="${pageContext.request.contextPath}/logout" onclick="return confirm('确定要退出登录吗？')">
            <img src="${pageContext.request.contextPath}/static/exit.svg" alt="退出">
            退出登录
        </a>
    </div>
</div>

</body>
</html>
